<?php
class AlbumViewModel extends ViewModel{
    public $viewFields = array( 
        'Album'=>array('_type'=>'LEFT',
                    '*',
        ),
        'Account'=>array('_type'=>'LEFT',
                    '_on'=>'Account.uid=Album.uid',
                    'name'=>'uname',
        ),
    );
    public function _initialize(){
        $this->order('id DESC')->limit(20);
    }
}
?>